package cn.hzw.supermarket.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

import cn.hzw.supermarket.R;
import cn.hzw.supermarket.databinding.ActivityServerClauseBinding;

public class ServerClauseActivity extends AppCompatActivity {
    private ActivityServerClauseBinding binding;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //全屏，隐藏标题
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        binding = ActivityServerClauseBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());
        initView();
    }
    private void initView() {
        binding.layoutTitle.tvTitle.setText("服务条款");
        binding.layoutTitle.ivBack.setOnClickListener(view -> {
            finish();
        });
    }
}